<?php
class CurrentUserModel extends UserModel{
  private $isGuest = true;
  static private $instance = NULL;

  static function getInstance(){
    if (self::$instance == NULL)
    {
      self::$instance = new CurrentUserModel();
    }
    return self::$instance;
  }
  public function get_isGuest(){
    return $this->isGuest;
  }
  public function set_isGuest($type){
    $this->isGuest = $type;
  }
  public function init(UserModel $user){
    $this->id = $user->get_id();
    $this->name = $user->get_name();
    $this->password = $user->get_password();
  }
}
?>
